import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.Random;

public class task3 {
    public static void main(String[] args) throws IOException {
        BufferedReader br=new BufferedReader(new FileReader("d:\\a.txt"));
        ArrayList<String> arrayList=new ArrayList<String>();
        String line =null;
        Random random=new Random();
        while ((line=br.readLine())!=null){
            arrayList.add(line);
        }
        int a=random.nextInt(arrayList.size());
        String s=arrayList.get(a);
        System.out.println(s);
    }
}
